#include "tools.h"
#include "stdio.h"

// 断言函数
void assert_log(BOOL b,const char * LogStr){
    if (!b){
        puts(LogStr);
    }
}

uchar Rounded_up_testing(){

    double x1 = 3.14,x2 = 0,x3 = -1.43;
    int e1 = 4,e2 = 0, e3 = -2;
    int r1,r2,r3;

    r1 = Rounded_up(x1);
    r2 = Rounded_up(x2);
    r3 = Rounded_up(x3);
    
    puts("Testing: Rounded_up_testing()");

    assert_log(r1 == e1,"正数测试不通过");
    // printf("%d\n",r1);
    assert_log(r2 == e2,"零值测试不通过");
    // printf("%d\n",r2);
    assert_log(r3 == e3,"负数测试不通过");
    // printf("%d\n",r3);
}



int main(){

    Rounded_up_testing();

    return 0;
}


